Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle newlines in FormattedText #2165

Merged
merged 1 commit into from
Mar 18, 2022

Conversation

cwensley
Copy link
Member

This allows you to measure and draw text that has newlines. There's still some issues on WPF and Gtk where multiple paragraph strings won't align right/center each paragraph separately when wrapping is turned off, but this makes this immensely more useful.

Some additional changes:

  • WinForms: Fixed issue where single lines or last lines in the paragraph were justified, but they should not be.
  • Gtk: Improved performance of FormattedText in most cases, and caches the pango layout instead of creating it each time it is drawn/measured.

@cwensley cwensley added this to the 2.6.2 milestone Mar 18, 2022
@cwensley cwensley merged commit cd6bf51 into picoe:develop Mar 18, 2022
@cwensley cwensley deleted the curtis/formattedtext-newlines branch March 18, 2022 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant